<html><head><title>FillPath</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">FillPath()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>FillPath</b></font>([Flags])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Fill all closed figures in the current vector drawing path with color from the drawing source. 
<br>
<br>
By default, the path is reset after calling this function. This can be prevented with the appropriate flags. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Flags (optional)</i></td>
<td width="90%"> 
Can be one of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Path_Default</font>     : No special behavior (default value)
  <font color="#924B72">#PB_Path_Preserve</font>    : Don't reset the path after this function
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

If the path has overlapping figures, it is filled in an odd/even fashion. Areas enclosed in 
an odd number of borders are filled, while areas enclosed in an even number of borders are not 
filled. That is, everything with in the outer border is filed, while enclosed figures are not 
filled. If the enclosed figure again contains another figure, that 3rd figure will be filled 
again, and so on. 

</blockquote><p><b>Example</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 0, 0, 400, 200, &quot;VectorDrawing&quot;, <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#3A3966">    CanvasGadget</font>(0, 0, 0, 400, 200)

    <b><font color="#3A3966">If</font></b> <font color="#3A3966">StartVectorDrawing</font>(<font color="#3A3966">CanvasVectorOutput</font>(0))

<font color="#3A3966">      AddPathBox</font>(50, 50, 200, 50)
<font color="#3A3966">      AddPathBox</font>(150, 75, 200, 50)
<font color="#3A3966">      VectorSourceColor</font>(<font color="#3A3966">RGBA</font>(0, 0, 255, 255))
<font color="#3A3966">      FillPath</font>()
    
<font color="#3A3966">      StopVectorDrawing</font>()
    <b><font color="#3A3966">EndIf</font></b>
    
    <b><font color="#3A3966">Repeat</font></b>
      Event =<font color="#3A3966"> WaitWindowEvent</font>()
    <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

<p><img src="../HelpPictures/fillpath.png"></p>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="strokepath.html">StrokePath()</a>, <a href="dotpath.html">DotPath()</a>, <a href="dashpath.html">DashPath()</a>, <a href="customdashpath.html">CustomDashPath()</a>, <a href="resetpath.html">ResetPath()</a>, <a href="clippath.html">ClipPath()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=endvectorlayer.html>EndVectorLayer()</a> - <a href="index.html">VectorDrawing Index</a> - <a href="fillvectoroutput.html">FillVectorOutput()</a> -><br><br>

</body></html>